FUNCTION

map_rule_expressions_from_gtv

function map_rule_expressions_from_gtv(gtv_rules: list<gtv>): list<rule_expression>

Takes a gtv representation of rules, and converts them into a list of rule_expressions

Throws if gtv_rules contains any entry that is not the GTV representation of a rule. Common scenarios are if any element of the list<gtv>:

  • is not a list itself
  • has components which are not, in this exact order:
    • an element of rule_operator
    • an element of rule_variable
    • an integer value

Parameters

  • gtv_rules — the rules that should be deserialized
© 2024 Chromia